

inherit eutils cvs

DESCRIPTION="Open Source Computer Vision Library"
HOMEPAGE="http://www.intel.com/research/mrl/research/opencv/index.htm"
LICENSE="BSD" 
KEYWORDS="x86 amd64 sparc"
SRC_URI=""
SLOT="0"
IUSE="python"
RESTRICT="nomirror"
S=${WORKDIR}/${PN}
ECVS_SERVER="opencvlibrary.cvs.sourceforge.net:/cvsroot/opencvlibrary"
ECVS_MODULE="opencv"
ECVS_USER="anonymous"
ECVS_PASS=""
ECVS_UP_OPTS="-D ""today"" -dP"
ECVS_CO_OPTS="-D ""today"""

DEPEND=">=x11-libs/gtk+-2.0.0
	media-libs/libpng
	media-libs/jpeg
	media-libs/tiff
	media-video/ffmpeg
	python? ( >=dev-lang/python-2.2 )"


src_compile() {
	#NOCONFIGURE=1 ./autogen.sh || die "autogen.sh failed."
	econf `use_enable python` || die "econf failed"
	libtoolize --copy --force
	emake || die "emake failed"
}

src_install() {
	make install DESTDIR=${D} || die "make install failed"
}
